#! *_* coding:utf-8 *_*

standered_fonts  = {
                   '农':'unif8ed','家':'unieb18','自':'unif510','想':'uniebd8','吃':'unie2e8;','所':'unif216','以':'unif4cf','就':'unif094','去':'unif142',
                   '店':'unie943;','的':'unif0cf','话':'unief34', '还':'unied6e', '比':'unif708', '之':'unif58f','环':'unie049','周':'unie2b8', '边':'unif6da',
                   '好':'unief57','那':'unieb9a','很':'unif2a8','然':'unif5af','大':'unie2a6','张':'unie6a6', '要':'unif5b7', '时':'unif246', '才':'unif638',
                   '起':'unif025','中':'unie2ac',
               }
class parameter():
   def Headers_Main(self):
       headers = {
        'Host': 'www.dianping.com',
        'Connection': 'keep-alive',
        'Upgrade-Insecure-Requests': '1',
        'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36',
        'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8',
        'Referer': 'http://www.dianping.com/',
        'Accept-Encoding': 'gzip, deflate',
        'Accept-Language': 'zh-CN,zh;q=0.9',
        'Cookie': 'cy=1609; cye=shuangliu; _lxsdk_cuid=17121d2e833c8-05cd227791d916-36664c08-100200-17121d2e837c8; _lxsdk=17121d2e833c8-05cd227791d916-36664c08-100200-17121d2e837c8; _hc.v=48ad64b9-9586-cc98-a80b-7d63eea41beb.1585410403; _lx_utm=utm_source%3DBaidu%26utm_medium%3Dorganic; lgtoken=06f2d452d-443e-4662-a73c-65d3b34a3b09; dplet=b68793d6b1edad103246e73b65a0a92b; dper=ab1986066ddb37673fce3e23014715bef28ee77e2008b0a04d3e8e7bc8bfa6f8a44c750b1775a153bb899110ef9960ac54e461cf2bbca1cd99832855da357c66c2b8bcd7307104ce01ab7b9c8448780df7270f24b7bbe558b7964fbcaeb30ec8; ll=7fd06e815b796be3df069dec7836c3df; ua=dpuser_0845828649; ctu=fe6d19cfe7073c84e98a12dcf86b6a604cd697380064cf9dcb300ff91371b584; uamo=13363162714; _lxsdk_s=17121d2e838-20a-112-3dd%7C%7C38'
    }
       return headers

   def Headers_Sec(self):
       headers ={
           'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8',
           'Accept-Encoding': 'gzip, deflate',
           'Accept-Language': 'zh-CN,zh;q=0.9',
           'Cache-Control': 'max-age=0',
           'Connection': 'keep-alive',
           'Cookie': 'cy=1609; cye=shuangliu; _lxsdk_cuid=17121d2e833c8-05cd227791d916-36664c08-100200-17121d2e837c8; _lxsdk=17121d2e833c8-05cd227791d916-36664c08-100200-17121d2e837c8; _hc.v=48ad64b9-9586-cc98-a80b-7d63eea41beb.1585410403; _lx_utm=utm_source%3DBaidu%26utm_medium%3Dorganic; dplet=b68793d6b1edad103246e73b65a0a92b; dper=ab1986066ddb37673fce3e23014715bef28ee77e2008b0a04d3e8e7bc8bfa6f8a44c750b1775a153bb899110ef9960ac54e461cf2bbca1cd99832855da357c66c2b8bcd7307104ce01ab7b9c8448780df7270f24b7bbe558b7964fbcaeb30ec8; ll=7fd06e815b796be3df069dec7836c3df; ua=dpuser_0845828649; ctu=fe6d19cfe7073c84e98a12dcf86b6a604cd697380064cf9dcb300ff91371b584; uamo=13363162714; s_ViewType=10; _lxsdk_s=17121d2e838-20a-112-3dd%7C%7C66',
           'Host': 'www.dianping.com',
           'Referer': 'http://www.dianping.com/',
           'Upgrade-Insecure-Requests': '1',
           'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36'
       }
       return headers

   def woff_fonts(self,wait_for_mach):
       global standered_fonts
       match = []
       ziped = zip(k for k,v in standered_fonts.items() if v == wait_for_mach[0])
       print(ziped)

       return zip(*ziped)